home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / misc / INSTALL < prev    next >
Encoding:
Text File  |  1994-04-25  |  12.8 KB  |  312 lines  |  [TEXT/EDIT]

  1. -----------------------------------------------------------------------
  2.  
  3.    RLaB Installation Instructions:
  4.  
  5.    To configure rlab for your platform you must:
  6.  
  7.    Make the Libraries: The libraries that are compatible with
  8.    rlab-0.99 are: rblas-1.1.tar
  9.           rlap-1.1.tar
  10.           rfft-1.1.tar
  11.           rnlib-1.1.tar
  12.           plplot4p99f.tar.gz (optional)
  13.  
  14.    Each library unpacks into it's own directory. Use configure to
  15.    create the Makefile, then type `make'. `make install' to install
  16.    the library. See the README file in each library directory for
  17.    further instructions.
  18.  
  19.    1.) Unpack the rlab distribution (you have already done that :-).
  20.    2.) Type `./configure' from within the top-level rlab directory.
  21.  
  22.     2.a) Configure will recognize certain "with" options:
  23.  
  24.     --prefix=dir        Use dir as the root of the software
  25.                 installation tree.
  26.     --with-cc        Use the cc compiler
  27.     --with-gcc        Use the GNU C compiler
  28.     --with-LIBS=dir        Look for all libraries in dir 1st. If
  29.                 the bulk of your libraries are not in
  30.                 /usr/local/lib, then this is a good
  31.                 option to use.
  32.     --with-NALIBS=dir    Look for the Numerical Analysis
  33.                 libraries in dir
  34.     --with-FLIBS=dir    Look for the f2c libraries in dir. If
  35.                 the f2c libraries are in the same
  36.                 place as the Numerical Analysis libs,
  37.                 then this option is unnecessary.
  38.  
  39.     --with-PLIBS=dir    Look for the PLPLOT library in dir.
  40.  
  41.     See the fortran notes below if you wish to link with Fortran
  42.     compiled subroutines.
  43.  
  44.    3.) Type `make'
  45.  
  46.     3.a) If you want to install rlab someplace other than
  47.     /usr/local, then type `make prefix=/usr/someplace/else' (if
  48.     you did not use the --prefix option with configure).
  49.  
  50.     3.b) Type `make Test'. This run rlab through some simple tests
  51.     to verify correct behavior.
  52.  
  53.    4.) Type `make -n install' and verify that the install process is to
  54.    your liking.
  55.  
  56.     4.a) If you want to install rlab someplace other than
  57.     /usr/local, then type `make prefix=/usr/someplace/else -n install'.
  58.     prefix should match whatever was used in step 3.a.
  59.  
  60.    5.) Type the make-command used in step 4 or 4a without the `-n'
  61.    option.
  62.  
  63.    6.) Enjoy ...
  64.  
  65.    7.) Send bug reports to ians@eskimo.com, or to the mailing list at
  66.    rlab-list@eskimo.com. If you want to subscribe to the mailing list
  67.    send mail to ians@eskimo.com.
  68.  
  69.    IN CASE OF EMERGENCY: If the make does not proceed through
  70.    installation without problems, then human intervention will be
  71.    required. The files created by configure (Makefile and config.h)
  72.    can be edited by hand, or Makefile.dist (cp to Makefile), and
  73.    config.h.dist (cp to config.h) can be edited to achieve a
  74.    compileable rlab. These files are supposed to have enough comments
  75.    to allow installers to figure out the correct options.
  76.  
  77.    See the file PROBLEMS for solutions to some commonly encountered
  78.    difficulties.
  79.  
  80.    Please send report(s) of any compilation or installation
  81.    difficulties to ians@eskimo.com. 
  82.  
  83.    ---------------------------------------------------------------
  84.  
  85.    NOTES:
  86.  
  87.    F2C LIBS:
  88.  
  89.    If you use the f2c translated numerical libraries, and you do not
  90.    use the f2c Fortran libraries, you will most likely have trouble
  91.    during the final link of the executable.  Unfortunately, most
  92.    vendors have been unable to refrain from gratuitously modifying
  93.    libF77.a, and libI77.a. To solve this problem get the f2c
  94.    distribution from netlib (netlib.att.com, in netlib/f2c), or from
  95.    prep.ai.mit.edu (in pub/gnu).
  96.  
  97.    FORTRAN:
  98.  
  99.    RLaB is used on many machines without a Fortran compiler. This is
  100.    made possible by the AT&T f2c project. However, some users have a
  101.    Fortran compiler, and even specially optimized versions of the BLAS
  102.    subroutines. If you wish to link with Fortran compiled (or vendor
  103.    supplied) libraries, you are on your own. I would like to make this
  104.    process simpler in the near future but, at the moment it is not
  105.    reccommended, unless you are knowledgeable about C - Fortran
  106.    interfaces. If you are knowedgeable about C - Fortran interfaces,
  107.    then you may wish to give it a try:
  108.  
  109.     0) Get and build ALL of the libraries with a Fortran compiler.
  110.        You will need the double precision version of fftpack (send
  111.        me mail if you don not have it). The remaining libraries
  112.        are available from netlib. 
  113.     1) Run configure
  114.     2) Edit the generated Makefile.
  115.         a) Comment out the rules for lp.o and bl.o
  116.         b) Uncomment the fule for .f.o
  117.         c) Set the value of F77
  118.         d) Edit the value of FLIBS. This is tougher than it
  119.                may seem at 1st. Each platform tends to be
  120.                different. If you are successfull, please send me
  121.                the FLIBS definition that works. I will keep a list
  122.                to make it easier on others in the future.
  123.         e) Set the value for FCONV
  124.     4) You may need to change the typedefs in fi.h to  suit your
  125.        particular Fortran compiler. Most Fortran compilers do not
  126.        use long ints (but f2c does).
  127.     3) Type make
  128.  
  129.     Some tested platforms...
  130.  
  131.     Sun, SunOS 5.3 (Solaris 2.3):
  132.         FLIBS = -L/opt/SUNWspro/SC3.0/lib -lF77 -lM77 -lsunmath
  133.         FCONV = -DUSE_F2C
  134.  
  135.     Sun SunOS 4.1.2
  136.         FLIBS = -L/usr/lang/SC1.0 -lF77
  137.         FCONV = -DUSE_F2C
  138.  
  139.     DEC-Ultrix-RISC:
  140.         FLIBS = -L. -lF77 -lI77 -lUfor -lfor -lutil \
  141.             -lots -L/usr/lib/cmplrs/fort -li_31
  142.         FCONV = -DUSE_F2C
  143.  
  144.     AIX v3.2:
  145.         FLIBS = -L. -lxlf -lxlfutil
  146.         FCONV = -DUSE_LOWER
  147.         You will need to make sure that -lc appears before any
  148.         numercial libs
  149.  
  150.     DEC-Alpha:
  151.         FLIBS = -L. -lfor -lUfor -lFutil -lots -lm -lc
  152.         FCONV = -DUSE_F2C
  153.  
  154.     Titan P3000:
  155.         FLIBS = -L. -lF77 -lI77 -lUmF77 -lubF77 -liF77
  156.         FCONV = -DUSE_UPPER
  157.  
  158.     Watch out for things like:
  159.  
  160.     a) Linking to Fortran versions of getenv(). On some machines
  161.     you may have to put -lc at the head of the library list.
  162.  
  163.    PLOTTING:
  164.  
  165.    A builtin plotting capability is in work. To make RLaB with the new
  166.    plotting functions you must have the PLPLOT library. PLPLOT is
  167.    freely available. You can get PLPLOT from hagar.ph.utexas.edu in
  168.    pub/plplot. If you have a double precision version of the PLPLOT
  169.    library configure may find it and turn on the plotting capability.
  170.    At present configure searches for libplplotdX.a and libplplotdtk.a.
  171.    If you have a PLPLOT library under some other name, then edit the
  172.    Makefile variable PLIBS and PLIB_DIR to reflect the correct
  173.    library, and then edit config.h so that HAVE_RLAB_PLPLOT is
  174.    defined. See the file plplot.r for more information on how to use
  175.    the plotting functions. Also take a look at examples/plot_test.r
  176.    for Plplot examples.
  177.  
  178.    As an alternative to PLPLOT RLaB can use its built-in piping and
  179.    file I/O capabilities to get data to most plot programs fairly
  180.    easy. There is a sample Rlab program in a file called
  181.    toolbox/gnu_plot.r that uses these capabilities to interactively
  182.    make plots by running GNUPLOT as a sub-process. To use this
  183.    function (plot()), you must have the GNUPLOT program somewhere in
  184.    your PATH.  If you don't have GNUPLOT, or wish to use some other
  185.    plotting program feel free to modify the plot() interface to suit
  186.    your needs.
  187.  
  188.    I recommend that you use GNUPLOT version 3.2 or higher. Versions
  189.    before 3.2 tend to break the input stream when an input error
  190.    occurs, thus making plotting intolerant of user errors.
  191.  
  192. -----------------------------------------------------------------------
  193.  
  194. This is a generic INSTALL file for utilities distributions.
  195. If this package does not come with, e.g., installable documentation or
  196. data files, please ignore the references to them below.
  197.  
  198. To compile this package:
  199.  
  200. 1.  Configure the package for your system.  In the directory that this
  201. file is in, type `./configure'.  If you're using `csh' on an old
  202. version of System V, you might need to type `sh configure' instead to
  203. prevent `csh' from trying to execute `configure' itself.
  204.  
  205. The `configure' shell script attempts to guess correct values for
  206. various system-dependent variables used during compilation, and
  207. creates the Makefile(s) (one in each subdirectory of the source
  208. directory).  In some packages it creates a C header file containing
  209. system-dependent definitions.  It also creates a file `config.status'
  210. that you can run in the future to recreate the current configuration.
  211.  
  212. Running `configure' takes a minute or two.  While it is running, it
  213. prints some messages that tell what it is doing.  If you don't want to
  214. see the messages, run `configure' with its standard output redirected
  215. to `/dev/null'; for example, `./configure >/dev/null'.
  216.  
  217. To compile the package in a different directory from the one
  218. containing the source code, you must use a version of `make' that
  219. supports the VPATH variable, such as GNU `make'.  `cd' to the directory
  220. where you want the object files and executables to go and run
  221. `configure'.  `configure' automatically checks for the source code in
  222. the directory that `configure' is in and in `..'.  If for some reason
  223. `configure' is not in the source code directory that you are
  224. configuring, then it will report that it can't find the source code.
  225. In that case, run `configure' with the option `--srcdir=DIR', where
  226. DIR is the directory that contains the source code.
  227.  
  228. By default, `make install' will install the package's files in
  229. /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify an
  230. installation prefix other than /usr/local by giving `configure' the option
  231. `--prefix=PATH'.  Alternately, you can do so by consistently giving a value
  232. for the `prefix' variable when you run `make', e.g.,
  233.     make prefix=/usr/gnu
  234.     make prefix=/usr/gnu install
  235.  
  236. You can specify separate installation prefixes for
  237. architecture-specific files and architecture-independent files.  If
  238. you give `configure' the option `--exec-prefix=PATH' or set the
  239. `make' variable `exec_prefix' to PATH, the package will use PATH as
  240. the prefix for installing programs and libraries.  Data files and
  241. documentation will still use the regular prefix.  Normally, all files
  242. are installed using the regular prefix.
  243.  
  244. Another `configure' option is useful mainly in `Makefile' rules for
  245. updating `config.status' and `Makefile'.  The `--no-create' option
  246. figures out the configuration for your system and records it in
  247. `config.status', without actually configuring the package (creating
  248. `Makefile's and perhaps a configuration header file).  Later, you can
  249. run `./config.status' to actually configure the package.  You can also
  250. give `config.status' the `--recheck' option, which makes it re-run
  251. `configure' with the same arguments you used before.  This option is
  252. useful if you change `configure'.
  253.  
  254. Some packages pay attention to `--with-PACKAGE' options to `configure',
  255. where PACKAGE is something like `gnu-libc' or `x' (for the X Window System).
  256. The README should mention any --with- options that the package recognizes.
  257.  
  258. `configure' ignores any other arguments that you give it.
  259.  
  260. If your system requires unusual options for compilation or linking
  261. that `configure' doesn't know about, you can give `configure' initial
  262. values for some variables by setting them in the environment.  In
  263. Bourne-compatible shells, you can do that on the command line like
  264. this:
  265.     CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
  266.  
  267. The `make' variables that you might want to override with environment
  268. variables when running `configure' are:
  269.  
  270. (For these variables, any value given in the environment overrides the
  271. value that `configure' would choose:)
  272. CC        C compiler program.
  273.         Default is `cc', or `gcc' if `gcc' is in your PATH.
  274. INSTALL        Program to use to install files.
  275.         Default is `install' if you have it, `cp' otherwise.
  276.  
  277. (For these variables, any value given in the environment is added to
  278. the value that `configure' chooses:)
  279. DEFS        Configuration options, in the form `-Dfoo -Dbar ...'
  280.         Do not use this variable in packages that create a
  281.         configuration header file.
  282. LIBS        Libraries to link with, in the form `-lfoo -lbar ...'
  283.  
  284. If you need to do unusual things to compile the package, we encourage
  285. you to figure out how `configure' could check whether to do them, and
  286. mail diffs or instructions to the address given in the README so we
  287. can include them in the next release.
  288.  
  289. 2.  Type `make' to compile the package.  If you want, you can override
  290. the `make' variables CFLAGS and LDFLAGS like this:
  291.  
  292.     make CFLAGS=-O2 LDFLAGS=-s
  293.  
  294. 3.  If the package comes with self-tests and you want to run them,
  295. type `make check'.  If you're not sure whether there are any, try it;
  296. if `make' responds with something like
  297.     make: *** No way to make target `check'.  Stop.
  298. then the package does not come with self-tests.
  299.  
  300. 4.  Type `make install' to install programs, data files, and
  301. documentation.
  302.  
  303. 5.  You can remove the program binaries and object files from the
  304. source directory by typing `make clean'.  To also remove the
  305. Makefile(s), the header file containing system-dependent definitions
  306. (if the package uses one), and `config.status' (all the files that
  307. `configure' created), type `make distclean'.
  308.  
  309. The file `configure.in' is used as a template to create `configure' by
  310. a program called `autoconf'.  You will only need it if you want to
  311. regenerate `configure' using a newer version of `autoconf'.
  312.